﻿using System;
using System.Collections.Generic;

namespace Waterfood.FolderSizeViewer
{
    [Serializable]
    public class FolderItem
    {
        public readonly string Name;
        public readonly bool IsFolder;
        public readonly List<string> Children;
        public long Size;
        public int Files;

        public FolderItem(string name, bool folder, long size)
        {
            Name = name;
            Files = 0;
            IsFolder = folder;
            if (IsFolder)
            {
                Children = new List<string>();
                Size = 0;
            }
            else
            {
                Children = null;
                Size = size;
            }
        }

        ////public Entry Copy()
        ////{
        ////    var c = new Entry(IsFolder, Size);
        ////    c.Size = Size;
        ////    c.Files = Files;
        ////    c.Children.AddRange(Children);
        ////    return c;
        ////}
    }
}
